package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.LoginSmsModel;
import com.dibang.app.operation.model.impl.LoginSmsModelImpl;
import com.dibang.app.operation.presenter.abs.LoginSmsPresenter;
import com.dibang.app.operation.presenter.impl.LoginSmsPresenterImpl;
import com.dibang.app.operation.view.abs.LoginSmsView;
import com.dibang.app.operation.view.impl.LoginSmsViewImpl;

/**
 * Created by wxl on 2019/7/19.
 */

public class LoginSmsProImpl extends AbsProvider<LoginSmsView,LoginSmsPresenter,LoginSmsModel> {
    @Override
    public LoginSmsView getView() {
        return BeanFactory.getInstance(LoginSmsViewImpl.class);
    }

    @Override
    public LoginSmsPresenter getPresenter() {
        return BeanFactory.getInstance(LoginSmsPresenterImpl.class);
    }

    @Override
    public LoginSmsModel getModel() {
        return BeanFactory.getInstance(LoginSmsModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(LoginSmsViewImpl.class,LoginSmsPresenterImpl.class,LoginSmsModelImpl.class);
    }
}
